Inheritance diagram for RayHitParameters:

Public Member Functions | |
| RayHitParameters () | |
| RayHitParameters (RayHit3D *theHit, Ray3D *theRay) | |
| RayHitParameters (real min, real max, RayHit3D *theHit, Ray3D *theRay) | |
Public Attributes | |
| real | tmin |
| start parameter of the ray. | |
| real | tmax |
| end parameter of the ray. | |
| Ray3D * | ray |
| a pointer to the ray. | |
| RayHit3D * | hit |
| a pointer to the result of the intersection. | |
| int32 | originInstanceIndex |
| index used in the instance grid to identify each instance | |
| int32 | originSubIndexIndex |
| index used in the by some some raytracable primitive to identify a sub instance (example: a leaf in a tree) | |
| int32 | originFacetIndex |
| index of the facet of the instance that should excluded | |
| void * | additionalInfos |
| used in TGrid to do something else than just finding the first rayhit. For example storing all the instances intersected by the ray. | |
The fields originInstanceIndex,originSubIndexIndex and originFacetIndex are used to identify a particular triangle that is excluded from intersection calculation (usually the origin of the ray for a reflected ray). If you do not want to provide such a triangle, just use -1 in all those fields.
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
|
used in TGrid to do something else than just finding the first rayhit. For example storing all the instances intersected by the ray.
|
|
|
a pointer to the result of the intersection.
|
|
|
index of the facet of the instance that should excluded
|
|
|
index used in the instance grid to identify each instance
|
|
|
index used in the by some some raytracable primitive to identify a sub instance (example: a leaf in a tree)
|
|
|
a pointer to the ray.
|
|
|
end parameter of the ray.
|
|
|
start parameter of the ray.
|
1.4.5